package com.niuwa.p2p.action.studentcust;

import java.util.Map;

import org.apache.struts2.convention.annotation.Action;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.niuwa.p2p.action.JsonAction;
import com.niuwa.p2p.core.mvc.entity.PageBean;
import com.niuwa.p2p.entity.business.LoanClaim;
import com.niuwa.p2p.entity.business.RepayPlan;
import com.niuwa.p2p.entity.customer.StudentInfoFromApp;
import com.niuwa.p2p.service.studentcust.IStudentCustService;
@Controller
public class StudentCustAction extends JsonAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String custName;
	private String schoolName;
	private String province;
	private String city;
	private String beginTime;
	private String endTime;
	@Autowired
	private IStudentCustService studentCustService;
	
	
	public String getCustName() {
		return custName;
	}
	public void setCustName(String custName) {
		this.custName = custName;
	}
	public String getSchoolName() {
		return schoolName;
	}
	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	/**
	 * 
	 * 
	 */	
	@Action("gotoStudentCustListPage")
	public String gotoStudentCustListPage() {
		return "studentCustListPage";
	}
	/**
	 * 
	 * 获取学生列表
	 */	
	@Action("studentCustList")
	public String getStudentCustList() {
		Map<String, Object> paramMap = getParamMap();
		PageBean<StudentInfoFromApp> page =  studentCustService.selectStudentList(paramMap);
		setObjectReSult(page);
		return NONE;
	}
}
